//
//  HeaderCollectionView.m
//  IconMaster
//
//  Created by mac on 2017/8/1.
//  Copyright © 2017年 yangweiwei. All rights reserved.
//

#import "HeaderCollectionView.h"

@implementation HeaderCollectionView
//- (void)searchBarTextDidEndEditing:(UISearchBar *)searchBar{
//
//    if ([self.delegate respondsToSelector:@selector(headerButton:)]) {
//        [self.delegate headerButton:@{@"title":searchBar.text}];
//    }
//}
- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar  
{  
    if ([self.delegate respondsToSelector:@selector(headerButton:)]) {
        [self.delegate headerButton:@{@"title":searchBar.text}];
    }
    [self.searchBar resignFirstResponder];
}  

@end
